RichTextKit v0.4

RunExtensions.GetInterectingRuns<T> Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils
Declaring Type: RunExtensions

Given a list of consecutive runs, a start index and a length provides a list of sub-runs in the list of runs.

[Runtime.CompilerServices.IteratorStateMachine(Topten.RichTextKit.Utils.RunExtensions+<GetInterectingRuns>d__0`1[T])]
public static IEnumerable<SubRun> GetInterectingRuns<T>(this IReadOnlyList<T> list, int offset, int length);

Type Parameters

T

The list element type

Parameters

this IReadOnlyList<T> list

The list of runs

int offset

The offset of the run

int length

The length of the run

Returns

IEnumerable<SubRun>

An enumerable collection of SubRuns